package verify

import (
	"awesomeProject/app/request"
	"errors"
)

func AddPermissionsForRole(req *request.PermissionIds) error {
	if len(req.Checked) <= 0 {
		return errors.New("请选择分配的权限")
	}

	return nil
}

func AddRolesForUser(req *request.RoleIds) error {
	if len(req.RIdS) <= 0 {
		return errors.New("请选择分配的角色")
	}
	return nil
}
